BackGround = class()

function BackGround:init()
    self.mesh = mesh()
    c1 = color(255, 166, 0, 15)
    c2 = color(0, 155, 255, 8)
    c3 = color(0, 135, 255, 22)
    c4 = color(0, 181, 255, 40)
    self.mesh.vertices = {
        vec2(0,HEIGHT),vec2(WIDTH,HEIGHT),vec2(0,HEIGHT * 0.7),
        vec2(0,HEIGHT * 0.7),vec2(WIDTH,HEIGHT),vec2(WIDTH,HEIGHT * 0.7),
        vec2(0,HEIGHT * 0.7),vec2(WIDTH,HEIGHT * 0.7),vec2(0,HEIGHT * 0.4),
        vec2(0,HEIGHT * 0.4),vec2(WIDTH,HEIGHT * 0.7),vec2(WIDTH,HEIGHT * 0.4),
        vec2(0,HEIGHT * 0.4),vec2(WIDTH,HEIGHT * 0.4),vec2(0,0),
        vec2(0,0),vec2(WIDTH,HEIGHT * 0.4),vec2(WIDTH,0)
    }
    self.mesh.colors = {
        c1,c1,c2,c2,c1,c2,
        c2,c2,c3,c3,c2,c3,
        c3,c3,c4,c4,c3,c4
    }
end

function BackGround:draw()
    self.mesh:draw()
end

function BackGround:touched(touch)

end

